Optimal. Leaf size=120 \[ \frac{2 a^2 c^3 (9 A+B) \cos ^5(e+f x)}{63 f (c-c \sin (e+f x))^{3/2}}+\frac{8 a^2 c^4 (9 A+B) \cos ^5(e+f x)}{315 f (c-c \sin (e+f x))^{5/2}}-\frac{2 a^2 B c^2 \cos ^5(e+f x)}{9 f \sqrt{c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.386664, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2967, 2856, 2674, 2673} \[ \frac{2 a^2 c^3 (9 A+B) \cos ^5(e+f x)}{63 f (c-c \sin (e+f x))^{3/2}}+\frac{8 a^2 c^4 (9 A+B) \cos ^5(e+f x)}{315 f (c-c \sin (e+f x))^{5/2}}-\frac{2 a^2 B c^2 \cos ^5(e+f x)}{9 f \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2967
Rule 2856
Rule 2674
Rule 2673
Rubi steps
\begin{align*} \int (a+a \sin (e+f x))^2 (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx &=\left (a^2 c^2\right ) \int \frac{\cos ^4(e+f x) (A+B \sin (e+f x))}{\sqrt{c-c \sin (e+f x)}} \, dx\\ &=-\frac{2 a^2 B c^2 \cos ^5(e+f x)}{9 f \sqrt{c-c \sin (e+f x)}}+\frac{1}{9} \left (a^2 (9 A+B) c^2\right ) \int \frac{\cos ^4(e+f x)}{\sqrt{c-c \sin (e+f x)}} \, dx\\ &=\frac{2 a^2 (9 A+B) c^3 \cos ^5(e+f x)}{63 f (c-c \sin (e+f x))^{3/2}}-\frac{2 a^2 B c^2 \cos ^5(e+f x)}{9 f \sqrt{c-c \sin (e+f x)}}+\frac{1}{63} \left (4 a^2 (9 A+B) c^3\right ) \int \frac{\cos ^4(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx\\ &=\frac{8 a^2 (9 A+B) c^4 \cos ^5(e+f x)}{315 f (c-c \sin (e+f x))^{5/2}}+\frac{2 a^2 (9 A+B) c^3 \cos ^5(e+f x)}{63 f (c-c \sin (e+f x))^{3/2}}-\frac{2 a^2 B c^2 \cos ^5(e+f x)}{9 f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 4.64179, size = 106, normalized size = 0.88 \[ \frac{a^2 c \sqrt{c-c \sin (e+f x)} \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )^5 ((130 B-90 A) \sin (e+f x)+162 A+35 B \cos (2 (e+f x))-87 B)}{315 f \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.133, size = 83, normalized size = 0.7 \begin{align*}{\frac{ \left ( -2+2\,\sin \left ( fx+e \right ) \right ){c}^{2} \left ( 1+\sin \left ( fx+e \right ) \right ) ^{3}{a}^{2} \left ( \sin \left ( fx+e \right ) \left ( 45\,A-65\,B \right ) -35\,B \left ( \cos \left ( fx+e \right ) \right ) ^{2}-81\,A+61\,B \right ) }{315\,f\cos \left ( fx+e \right ) }{\frac{1}{\sqrt{c-c\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{2}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.43657, size = 575, normalized size = 4.79 \begin{align*} -\frac{2 \,{\left (35 \, B a^{2} c \cos \left (f x + e\right )^{5} + 5 \,{\left (9 \, A + 8 \, B\right )} a^{2} c \cos \left (f x + e\right )^{4} -{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right )^{3} + 2 \,{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right )^{2} - 8 \,{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right ) - 16 \,{\left (9 \, A + B\right )} a^{2} c +{\left (35 \, B a^{2} c \cos \left (f x + e\right )^{4} - 5 \,{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right )^{3} - 6 \,{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right )^{2} - 8 \,{\left (9 \, A + B\right )} a^{2} c \cos \left (f x + e\right ) - 16 \,{\left (9 \, A + B\right )} a^{2} c\right )} \sin \left (f x + e\right )\right )} \sqrt{-c \sin \left (f x + e\right ) + c}}{315 \,{\left (f \cos \left (f x + e\right ) - f \sin \left (f x + e\right ) + f\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sin \left (f x + e\right ) + A\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{2}{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]